livepatch: Reject payloads with .alternative or .ex_table if support is not built-in.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 6 Sep 2016 20:28:23 +0000 (16:28 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 23 Sep 2016 16:39:45 +0000 (12:39 -0400)
commitaef04c007490e40d341d1f39c96bd1f7cf4f6376
treedf569d60b95e40358e03b118bdd040bc81106fed
parent44db782fd20edae12d9292e0e72450ae46f6a739
livepatch: Reject payloads with .alternative or .ex_table if support is not built-in.

If the payload had the sections mentioned but the hypervisor
did not support some of them (say on ARM the .ex_table) - instead
of ignoring them - it should forbid loading of such payload.

Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/livepatch.c